home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / a_utils / perl / cterm.lha / Makefile < prev    next >
Makefile  |  1993-08-13  |  2KB  |  85 lines

  1. # names of programs used and compiler flags
  2.  
  3. CC=cc
  4. CFLAGS=-O
  5. LFLAGS=-lcurses
  6. NROFF=nroff
  7. TROFF=lroff
  8. PERL=perl
  9.  
  10. # directories where the stuff gets installed
  11.  
  12. BINDIR=/usr/staff/bin
  13. BINMODE=755
  14. PERLLIB=/local/usr/lib/perl
  15. LIBMODE=755
  16.  
  17. # constants used by edit.c
  18.  
  19. EDIT_RIGHT=-DEDIT_RIGHT=KEY_RIGHT
  20. EDIT_LEFT=-DEDIT_LEFT=KEY_LEFT
  21. BEEP=-DBEEP=beep
  22.  
  23. # no editing beyond this line
  24.  
  25. PLS=cterm.pl cdefs.pl curcon.pl
  26. OBJ=cterm.o cursesXt.o cdefs.o edit.o
  27. MISC=Makefile README cterm.1 try1 try2
  28. SOU=defs.h edit.c cterm.c cursesXt.c cursesXt.h
  29. GEN=cdefs.in cdefs.in.SUN cdefs.mk cdefs.types curcon.in curcon.mk cterm.pl
  30.  
  31. ALL=${MISC} ${SOU} ${GEN}
  32. CTERM=cterm.2.1
  33. ARCH=escudo.cs.ruu.nl
  34. SHELL=/bin/sh
  35. COMPRESS=/usr/ucb/compress
  36.  
  37. all: cterm curcon.pl
  38. cterm: cterm.o cursesXt.o edit.o cdefs.o
  39.     ${CC} ${CFLAGS} -o cterm cterm.o cursesXt.o edit.o cdefs.o ${LFLAGS}
  40. cterm.o: cterm.c defs.h
  41.     ${CC} ${CFLAGS} -c cterm.c
  42. cursesXt.o: cursesXt.c cursesXt.h defs.h
  43.     ${CC} ${CFLAGS} -c cursesXt.c
  44. cdefs.o: cdefs.c cursesXt.h defs.h
  45.     ${CC} ${CFLAGS} -c cdefs.c
  46. edit.o: edit.c defs.h
  47.     ${CC} ${CFLAGS} ${EDIT_RIGHT} ${EDIT_LEFT} ${BEEP} -c edit.c
  48. cdefs.c: cdefs.in
  49.     ${PERL} cdefs.mk
  50. curcon.pl: curcon
  51.     ./curcon > curcon.pl
  52. curcon: curcon.c
  53.     ${CC} ${CFLAGS} ${EDIT_RIGHT} ${EDIT_LEFT} -o curcon curcon.c
  54. curcon.c: curcon.in
  55.     ${PERL} curcon.mk
  56. cterm.1.nr: cterm.1
  57.     ${NROFF} -man cterm.1 > cterm.1.nr
  58. cterm.1.tr: cterm.1
  59.     ${TROFF} -man cterm.1 > cterm.1.tr
  60. install: all
  61.     cp cterm ${BINDIR}
  62.     chmod ${BINMODE} ${BINDIR}/cterm
  63.     cp ${PLS} ${PERLLIB}
  64.     cd ${PERLLIB} ; chmod ${LIBMODE} ${PLS}
  65.     @echo 'install man page by hand'
  66. man: cterm.1.tr cterm.1.nr
  67. clean:
  68.     rm -f ${OBJ} core cdefs.c curcon.c curcon
  69. realclean: clean
  70.     rm -f cterm cdefs.pl curcon.pl cterm.1.nr cterm.1.tr
  71.     rm -f cterm.shar cterm.shar.Z
  72. cterm.shar.Z: shar
  73. shar: realclean
  74.     shar -o cterm.shar ${ALL}
  75.     ${COMPRESS} -v cterm.shar
  76. arch: shar
  77.     rcp cterm.shar.Z ${ARCH}:/users/ftp/UNIX/${CTERM}.shar.Z
  78.     rsh ${ARCH} chmod 644 /users/ftp/UNIX/${CTERM}.shar.Z
  79. backup: shar
  80.     cp cterm.shar.Z ../back/${CTERM}.shar.Z
  81. show: cterm.1.nr
  82.     col < cterm.1.nr | more
  83. wc: realclean
  84.     wc *
  85.